package HomeWork3;

public class Test {
    public void makeFly(CanFly canFly){
        canFly.fly();
    }

    public static void main(String[] args) {
        Plane plane = new Plane();
        Bird bird =new Bird();
        plane.fly();
        bird.fly();
        Test test = new Test();
        test.makeFly(new Plane());
        test.makeFly(new Bird());


    }
}
